﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class operate_changeTeacherInfo : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        string teacher_id = Request["teacher_id"].ToString().Trim();
        string teacher_name = Request["teacher_name"].ToString().Trim();
        string teacher_tel = Request["teacher_tel"].ToString().Trim();

        string sql = "update tb_teacher set teacher_name ='" + teacher_name + "' ,teacher_tel ='" + teacher_tel + "' where teacher_id='" + teacher_id + "'";
        int k = SqlServer.ExecuteNonQuery(sql);
        if (k > 0)
        {
            Response.Write(k.ToString());
        }
        else
        {
            Response.Write("0");
        }
        Response.End();
    }
}